package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentMemberProtocolServiceApi;
import com.lzy.product.dtos.agent.AgentMemberProtocolDto;
import com.lzy.product.service.AgentMemberProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgentMemberProtocolServiceApiImpl implements AgentMemberProtocolServiceApi {

    @Autowired
    private AgentMemberProtocolService agentMemberProtocolService;

    @Override
    public Long insert(AgentMemberProtocolDto dto) {
        return agentMemberProtocolService.insert(dto);
    }

    @Override
    public Boolean update(AgentMemberProtocolDto dto) {
        return agentMemberProtocolService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentMemberProtocolService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }

    @Override
    public AgentMemberProtocolDto findById(Long id) {
        return agentMemberProtocolService.findById(id);
    }

    @Override
    public List<AgentMemberProtocolDto> query(AgentMemberProtocolDto dto) {
        return agentMemberProtocolService.query(dto);
    }
}
